import Vue from 'vue'
// const CTX = "http://" + document.domain+":92/cqsz"
const CTX = process.env.VUE_APP_BASEURL
Vue.prototype.baseURL = CTX
Vue.prototype.baseUploadURL = CTX + '/tbSysAttachment/upload'
Vue.prototype.version = process.env.VUE_APP_VERSION
Vue.prototype.env = process.env.NODE_ENV

export const LIBRARY = [
  //课程库
  {
    type: 1,
    name: '课程库',
    enName: 'course',
    enTitle: 'KECHENGKU',
    knowledgeName: '知识点',
    color: '#06a2c9',
    imgSrc: require('@/assets/specialty/bg1.jpg'),
    meta: {
      title: '课程',
    },
  },
  {
    type: 2,
    name: '专业库',
    enName: 'specialty',
    enTitle: 'ZHUANGYEKU',
    knowledgeName: '资源',
    color: '#0659a7',
    imgSrc: require('@/assets/specialty/bg2.jpg'),
    meta: {
      title: '专业',
    },
  },
  {
    type: 3,
    name: '兵种库',
    enName: 'arms',
    enTitle: 'BINGZHONGKU',
    knowledgeName: '资源',
    color: '#3d815a',
    imgSrc: require('@/assets/specialty/bg3.jpg'),
    meta: {
      title: '兵种',
    },
  },
  {
    type: 4,
    name: '专题库',
    enName: 'topic',
    enTitle: 'ZHUANGTIKU',
    knowledgeName: '资源',
    color: '#e67c00',
    imgSrc: require('@/assets/specialty/bg4.jpg'),
    meta: {
      title: '专题',
    },
  },
  {
    type: 5,
    name: '示范微视频',
    enName: 'micro',
    enTitle: 'SHIFANWEISHIPIN',
    knowledgeName: '资源',
    color: '#cc8690',
    imgSrc: require('@/assets/specialty/bg5.jpg'),
    meta: {
      title: '示范微视频',
    },
  },
  {
    type: 6,
    name: '培训资源',
    enName: 'training',
    enTitle: 'PEIXUNZIYUAN',
    knowledgeName: '资源',
    color: '#ffdbb2',
    imgSrc: require('@/assets/specialty/bg6.png'),
    meta: {
      title: '培训资源',
    },
  },
  {
    type: 9,
    name: '资源检索',
    enName: 'search',
    enTitle: 'ZIYUANJIANSUO',
    knowledgeName: '资源',
    color: '#930b0b',
    imgSrc: require('@/assets/specialty/bg2.jpg'),
    meta: {
      title: '检索',
    },
  },
  {
    type: 10,
    name: '热点思政元素',
    enName: 'political',
    enTitle: 'REDIANSIZHENGYUANSU',
    knowledgeName: '资源',
    color: '#930b0b',
    imgSrc: require('@/assets/specialty/bg2.jpg'),
    meta: {
      title: '热点',
    },
  },
]

export const NEWANDHOTS = [
  {
    id: 1,
    title: '最新',
    iconName: 'icon-zuixinpeizhi',
  },
  {
    id: 2,
    title: '最热',
    iconName: 'icon-remen',
  },
  {
    id: 3,
    title: '推荐',
    iconName: 'icon-biaoqian',
  },
]

export const FILETYPE = {
  video: [
    'mp4',
    'avi',
    'wmv',
    'mpeg',
    'm4v',
    'mov',
    'asf',
    'flv',
    'f4v',
    'rmvb',
    'rm',
    '3gp',
    'vob',
  ],
  file: ['txt', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'csv', 'pdf'],
  img: [
    'jpg',
    'jpeg',
    'png',
    'bmp',
    'gif',
    'pic',
    'tif',
    'pcx',
    'tga',
    'exif',
    'fpx',
    'svg',
    'psd',
    'cdr',
    'pcd',
    'dxf',
    'ufo',
    'eps',
    'ai',
    'raw',
    'avif',
    'apng',
  ],
}
